package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {

    void save(Employee employee, Long[] roleIds);

    void delete(Long id);

    void update(Employee employee, Long[] roleIds);

    Employee get(Long id);

    List<Employee> listAll();

    // 分页查询方法
    PageInfo<Employee> query(QueryObject qo);

    boolean checkUsername(String username);

    Employee login(String username, String password);

    Workbook exportXls();

    void importXls(Workbook wb);
}